]> dgit.raspbian.org Git - gnome-shell.git/commit
signalTracker: Correctly guard against invalid GObject.ConnectFlags
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 6 Jul 2022 15:55:46 +0000 (17:55 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 6 Jul 2022 16:24:15 +0000 (18:24 +0200)
commit371da8d39423dad6dab774a39fefe895239c7e16
tree7df482920f5a5706ed3eb2d65efbe0cfc53daa23
parentad0f11f02482c28868bcd5dbe0fa67f4f3ad8ca4
signalTracker: Correctly guard against invalid GObject.ConnectFlags

We considered any ConnectFlag value major than SWAPPED as invalid, while
it's technically not fully true as we need to ensure that the passed
value is respecting the whole flags mask.
In fact, per se SWAPPED|AFTER (> SWAPPED) is a valid value (even if we
don't support the AFTER value).

But this makes the check more future-proof.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2366>
js/misc/signalTracker.js